package jmine.tec.hydra.builders;

import jmine.tec.hydra.domain.HydraSystem;
import jmine.tec.test.Builder;

public class SystemBuilder implements Builder<HydraSystem> {

    private String mnemonico = "system";

    private String encoding = "utf-8";

    public static SystemBuilder aSystem() {
        return new SystemBuilder();
    }

    public SystemBuilder withMnemonico(String mnemonico) {
        this.mnemonico = mnemonico;
        return this;
    }

    public SystemBuilder withEncoding(String encoding) {
        this.encoding = encoding;
        return this;
    }

    public HydraSystem build() {
        HydraSystem system = new HydraSystem(this.mnemonico);
        system.setEncoding(this.encoding);
        return system;
    }
}
